var t1 = new AnimationThread("t1");

var gen1 = new Genesis(0,0);
gen1.setSize(500,500);

var text1 = new Content('1<br/>2<br/>3',0,10);
gen1.addComponent(text1);
text1.setTableSize(200,250);
text1.setText("I love U");


var image1 = new BookImage("Gif_image.gif",100,100);
//var image1 = new BookImage("flower_bee.jpg",100,100);
gen1.addComponent(image1);

var flash1 = new BookFlash("Pangya.swf",0,0);
gen1.addComponent(flash1);
flash1.setSize(200,200);
flash1.setPosition(50,50);
flash1.setQuality(0);

// Multimedia require full path for firefox
var multi1 = new BookMusic("file:///D:/My Work/Smart Book/www/music1.wma",400,30);
gen1.addComponent(multi1);

// Multimedia require full path for firefox
var multi2 = new BookMovie("file:///D:/My Work/Smart Book/www/movie1.wmv",200,300);
gen1.addComponent(multi2);

// Add Animation
var anime1 = new AnimationControl(1);
anime1.addCommand('image1.moveImageTo(300,300,1,1)');
anime1.addCommand('image1.moveImageTo(100,100,0,0)');
anime1.addCommand('image1.reSizeTo(50,50,1,1)');
anime1.addCommand('image1.reSizeTo(100,100,1,1)');
t1.addAnimationControl(anime1);

image1.setLink("http://www.kapook.com",0);

t1.startThread();
